package com.bytz.modules.cms.user.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bytz.common.aspect.annotation.Dict;
import com.bytz.common.entity.IFlowEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 莱宝CMS—审批管理—EC审批表
 * </p>
 *
 * @author KyleWang
 * @since 2022-10-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("cms_ec_audit")
@ApiModel(value = "EcAudit对象", description = "莱宝CMS—审批管理—EC审批表")
public class EcAudit implements Serializable, IFlowEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "订单ID")
    private String orderId;

    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名")
    private String updateByName;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "流程审批人")
    private String auditUsers;

    @ApiModelProperty(value = "下一节点处理人")
    private String nextAuditUsers;

    @ApiModelProperty(value = "流程实例Id")
    private String procInstId;

    @ApiModelProperty(value = "提交时间")
    private LocalDateTime submitTime;

    @ApiModelProperty(value = "完成时间")
    private LocalDateTime completeTime;

    @Dict(dicCode = "mall_order_ec_status")
    private String status;


}